package file.day9_25.day09;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class For增强型 {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        c.add("a");
        c.add("b");
        c.add("c");

        Iterator it = c.iterator();

        for(Object obj : c){
            String str = (String) obj;
            System.out.println(str);
        }
    }
}
